package main

import (
	"fmt"
	"time"
)

func Watch(ch chan int) {
	for true {
		if <-ch == 1 {
			fmt.Println("hello")
			break
		}
	}

}

func main() {
	ch := make(chan int)
	go Watch(ch)

	time.Sleep(time.Second)
	ch <- 1
	time.Sleep(time.Second)
}
